package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.example.vo.user.Publisher;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author LeXin Huang
 * @date 2021年03月23日 13:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName(value = "user_dynamic")
public class UserDynamic implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("dynamic_topic")
    private String topic;

    @TableField("dynamic_content")
    private String content;

    @TableField(value = "dynamic_publish_time", fill = FieldFill.INSERT)
    private Date publishTime;

    @TableField(exist = false)
    List<String> picturesUrl;

    @TableField(exist = false)
    Publisher publisher;

    @TableField("user_id")
    private Integer userId;

}
